package com.wuyanzu.shixicoderedo.common.utils;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResponseVO {

    private String code;

    private String message;

    private Object data;

    public static ResponseVO success(String code, Object data) {
        return new ResponseVO(code, "操作成功", data);
    }

    public static ResponseVO error(String code, Object message) {
        return new ResponseVO(code, "失败", message);
    }

}
